package com.spring.context;

import com.spring.beans.BeansException;

/**
 * @Description: This is a sample class.
 * @Author: Simon
 */
public interface ConfigurableApplicationContext extends ApplicationContext{

    //刷新容器
    void refresh() throws BeansException;

    void close();


    //向虚拟机注册一个钩子方法，在虚拟机关闭之前执行关闭容器操作
    void registerShutdownHook();
}
